﻿using System.Configuration.Abstractions;

namespace Sustainalytics.Synchronization.Validation.Log
{
    public class EmailSettings
    {
        public EmailSettings(IAppSettings settings)
        {
            this.To = settings.AppSetting("SupportEmail");
            this.From = settings.AppSetting("SMTPUserName");
        }

        public string From { get; private set; }

        public string To { get; private set; }
    }
}